Method: VCR::RequestMatcherRegistry#[]

Defined in:
lib/vcr/request_matcher_registry.rb

#[](matcher) ⇒ Object



64
65
66
67
68
69
70
# File 'lib/vcr/request_matcher_registry.rb', line 64

def [](matcher)
  @registry.fetch(matcher) do
    matcher.respond_to?(:call) ?
      Matcher.new(matcher) :
      raise_unregistered_matcher_error(matcher)
  end
end